<div id="tags">
      <div style="float: left;">
        <span><%= image_tag("/images/sidebar/tags.png") %></span>
        <span class="font_title_tag"><%= l(:label_tag) %>:</span>
      </div>

      <div id="tags_show" style="float: left;">
        <%= render :partial => "tags/tag_name", :locals => {:obj => obj, :non_list_all => false, :object_flag => object_flag} %>
      </div>
      <div style="float: left;">
      	<!-- 添加标签 -->
        <!-- <div style="margin-bottom: 30px; margin-top: 5px">
          <a href="javascript:void(0)" class="yellowBtn f_l" onclick="$('#put-tag-form').slideToggle();"><%= l(:label_add_tag) %></a>
        </div> -->
        <div id="put-tag-form" style="display:none; vertical-align: middle; margin-bottom: 10px">
          <%= form_for "tag_for_save", :remote => true, :url => tag_path,
                       :update => "tags_show",
                       :complete => '$("#put-tag-form").hide();' do |f| %>
              <%= f.text_field :name, :id => "name", :size => "20", :require => true, :maxlength => Setting.tags_max_length, :minlength => Setting.tags_min_length, :style => "height: 26px;" %>
              <%= f.text_field :object_id, :value => obj.id, :style => "display:none" %>
              <%= f.text_field :object_flag, :value => object_flag, :style => "display:none" %>
              <%= f.submit l(:button_project_tags_add), :class => "small" %>
          <% end %>
        </div>
      </div>
</div>
